<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib uri="/struts-tags"  prefix="s"%>
<%@ taglib prefix="pt" uri="/WEB-INF/pagetag"%>
<div id="showMessage" style="display:none;margin-top: 5px;width: 100%;color: red;float: left;font-size: 14px;"></div>
<table class="tableList table-hover">
	<thead>
		<tr>
			<th width="4%" class="title-th">
			    <input id="selectAllCheck" type="checkbox" value="" onclick="selectAll('selectAllCheck','yaPathArr');">
			</th>
			<th width="6%" class="title-th">编号
			   <i class="sort">
			      <img src="/wrem/css/public/images/px.gif"> 
			   </i>
			</th>
			<th width="20%" class="title-th">预案名称</th>
			<th width="20%" class="title-th">附件名称</th>
			<th width="10%" class="title-th">附件类型</th>
			<th width="10%" class="title-th">发布时间</th>
			<th width="15%" class="title-th">操作</th>
		</tr>
	</thead>
	<tbody>
	    <s:iterator value="resultMap['pageableList']" var="ya" status="l">
	        <tr>
	            <td class="tbody-td"><input type="checkbox" name="yaPathArr" value="${ya.pl_filepath}_${ya.file_name}_${ya.file_type}_${ya.id}"/><input type="hidden" id="filepath_${ya.id}" value="<s:property value="#ya.pl_filepath"/>"></td>
	            <td class="tbody-td"><s:property value="#l.index+1"/></td>
	            <td class="tbody-td"><s:property value="#ya.pl_nm"/></td>
	            <td id="filename_${ya.id}" class="tbody-td"><s:property value="#ya.file_name"/></td>
	            <td id="filetype_${ya.id}" class="tbody-td"><s:property value="#ya.file_type"/></td>
	            <td class="tbody-td"><s:property value="#ya.pl_dt"/></td>
	            <td class="tbody-td">
	                <a href="javascript:void(0);" onclick="chakan('filepath_${ya.id}','filetype_${ya.id}');"><s:if test="#ya.file_type.equals('pdf')||#ya.file_type.equals('doc')||#ya.file_type.equals('docx')||#ya.file_type.equals('PDF')">查看</s:if><s:else></s:else></a> 
	                <a href="javascript:void(0);" onclick="xiazai('filepath_${ya.id}','filename_${ya.id}','filetype_${ya.id}');">下载</a>&nbsp;&nbsp;&nbsp; 
	                <a href="javascript:void(0);" onclick="bianji('${ya.id}');">编辑</a>
	            </td>
	        </tr>
	    </s:iterator> 
	</tbody>
</table>
<!-- 分页开始 -->
 <pt:pageTag path="YaglAction_findYaByPage.action|yaTableList" pageBean="${pageBean}" paramMap="${paramMap}" pageFormId="pageForm"/>
<!-- end 分页 -->